#import "VividFlutterCell.h"


@implementation VividFlutterCell

- (instancetype)initWithFrame:(CGRect)frame {
	self = [super initWithFrame:frame];
	if (self) {
		//self.contentView.backgroundColor = UIColor.whiteColor;
	}
	return self;
}

- (void)setInsect:(VividFlutterModel *)insect {
	_insect = insect;

	//: 配置cell的UI

[self.tranquilGraspRiddleImageView sd_setImageWithURL:[NSURL URLWithString:insect.delight.stringValue] placeholderImage:nil];

	self.lanternEnigmaBlazeLabel.text = [NSString stringWithFormat:@"Count: %lu", (unsigned long)insect.heatwave.count];

}
//: 设置self.tranquilGraspRiddleImageView的圆角
+ (void)hazeJuggle:(UIImageView *)courageousWhisper insectNavigate:(CGFloat)archiveNirvanaForest {
	courageousWhisper.layer.cornerRadius = archiveNirvanaForest;
	courageousWhisper.layer.masksToBounds = YES;
}

//: yonderXenon 的点击事件
- (void)action_2 {}

- (UITextField *)suspicionMarbleTextField {
	if (!_suspicionMarbleTextField) {
	
        _suspicionMarbleTextField = [[UITextField alloc] initWithFrame:CGRectZero];
	}
	return _suspicionMarbleTextField;
}

//: _rebirthSereneLuminescenceButton 的点击事件
- (void)action_5 {}

- (UIButton *)rebirthSereneLuminescenceButton {
	if (!_rebirthSereneLuminescenceButton) {
	
        _rebirthSereneLuminescenceButton = [[UIButton alloc] initWithFrame:CGRectZero];
        UIImage *sereneElevateZenith = [UIImage imageNamed:@"images/icon_5.png"];
        if (sereneElevateZenith) {
	        [_rebirthSereneLuminescenceButton setImage:sereneElevateZenith forState:UIControlStateNormal];
        }
        [_rebirthSereneLuminescenceButton setTitle:@"button_5" forState:UIControlStateNormal];
        [_rebirthSereneLuminescenceButton setTitle:@"button_selected_5" forState:UIControlStateSelected];
        [_rebirthSereneLuminescenceButton setTitleColor:[UIColor colorWithRed:9/255.0 green:152/255.0 blue:148/255.0 alpha:0.9] forState:UIControlStateNormal];
        [_rebirthSereneLuminescenceButton setTitleColor:[UIColor colorWithRed:55/255.0 green:151/255.0 blue:95/255.0 alpha:0.8] forState:UIControlStateSelected];
        [_rebirthSereneLuminescenceButton addTarget:self action:@selector(action_5) forControlEvents:UIControlEventTouchUpInside];
	}
	return _rebirthSereneLuminescenceButton;
}

- (void)euphoriaUmbraWonderConfigViews {

    //: 描述_0
    self.tranquilGraspRiddleImageView = [[UIImageView alloc] init];
    self.tranquilGraspRiddleImageView.contentMode = UIViewContentModeScaleAspectFill;
    self.tranquilGraspRiddleImageView.clipsToBounds = YES;
    //: UIImageView的骚操作 充数
    [VividFlutterCell hazeJuggle:self.tranquilGraspRiddleImageView insectNavigate:19];
    UIImage *flourishSolar = [UIImage imageNamed:@"images/image_0.png"];
    if (flourishSolar) {
	    self.tranquilGraspRiddleImageView.image = flourishSolar;
    }
    [self.contentView addSubview:self.tranquilGraspRiddleImageView];
	[self.tranquilGraspRiddleImageView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(164);
		make.height.mas_equalTo(164);
		make.top.equalTo(@(19));
	}];


    //: 描述_1
    self.lanternEnigmaBlazeLabel = [UILabel new];
    self.lanternEnigmaBlazeLabel.text = @"label_1";
    self.lanternEnigmaBlazeLabel.font = [UIFont systemFontOfSize:20 weight:UIFontWeightBold];
    self.lanternEnigmaBlazeLabel.textColor = [UIColor colorWithRed:131/255.0 green:99/255.0 blue:53/255.0 alpha:0.6];
    self.lanternEnigmaBlazeLabel.textAlignment = NSTextAlignmentCenter;
    //: 不用理会的骚操作 = self.lanternEnigmaBlazeLabel.numberOfLines = 1;
    NSInteger driftMerge = 1;
    if (driftMerge>39 && driftMerge < 9892) {
	    driftMerge = 41;
    }
    self.lanternEnigmaBlazeLabel.numberOfLines = driftMerge;
    [self.contentView addSubview:self.lanternEnigmaBlazeLabel];
	[self.lanternEnigmaBlazeLabel mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(179);
		make.height.mas_equalTo(189);
		make.bottom.equalTo(@(10));
	}];


    //: 描述_2
    UIButton *yonderXenon = [[UIButton alloc] initWithFrame:CGRectZero];
    UIImage *mingle = [UIImage imageNamed:@"images/icon_2.png"];
    if (mingle) {
	    [yonderXenon setImage:mingle forState:UIControlStateNormal];
    }
    [yonderXenon setTitle:@"button_2" forState:UIControlStateNormal];
    [yonderXenon setTitle:@"button_selected_2" forState:UIControlStateSelected];
    [yonderXenon setTitleColor:[UIColor colorWithRed:228/255.0 green:93/255.0 blue:43/255.0 alpha:0.5] forState:UIControlStateNormal];
    [yonderXenon setTitleColor:[UIColor colorWithRed:118/255.0 green:211/255.0 blue:5/255.0 alpha:0.6] forState:UIControlStateSelected];
    [yonderXenon addTarget:self action:@selector(action_2) forControlEvents:UIControlEventTouchUpInside];
    self.radiateHarbingerButton = yonderXenon;
    [self.contentView addSubview:yonderXenon];
	[self.radiateHarbingerButton mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(57);
		make.height.mas_equalTo(194);
		make.top.equalTo(@(26));
		make.bottom.equalTo(@(14));
	}];


    //: 描述_3
    self.marvelCuriousView = [[UIView alloc] init];
    self.marvelCuriousView.frame = CGRectMake(20, 44, 59, 93);
    [self.contentView addSubview:self.marvelCuriousView];

	//: 描述_4
	[self.contentView addSubview:self.suspicionMarbleTextField];
	[self.suspicionMarbleTextField mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(109);
		make.height.mas_equalTo(130);
		make.top.equalTo(@(18));
	}];

	//: 描述_5
	[self.contentView addSubview:self.rebirthSereneLuminescenceButton];
	[self.rebirthSereneLuminescenceButton mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(132);
		make.height.mas_equalTo(198);
	}];
}


@end